package it.antonio.ilpizze.db.index.btree.memory;

import it.antonio.ilpizze.db.index.btree.Entry;

public class MemoryEntry<K extends Comparable<K>, V> implements Entry<K, V> {
	private K key;
	private V value; 
	
	public MemoryEntry(K key, V value) {
		this.key = key;
		this.value = value;
	}

	@Override
	public K key() {
		return key;
	}

	@Override
	public V value() {
		return value;
	}
	@Override
	public void value(V value) {
		this.value = value;
	}
	@Override
	public String toString() {
		return "E("+key+")";
	}

	

	
}
